package com.lzy.concertticket.threadlocal;

import jakarta.servlet.http.HttpServletResponse;

public class ResponseThreadLocal {
    private static final ThreadLocal<HttpServletResponse> t = new ThreadLocal<>();

    public static void set(HttpServletResponse response) {
        t.set(response);
    }

    public static HttpServletResponse get() {
        return t.get();
    }

    public static void remove() {
        t.remove();
    }
}
